import tkinter as tk
from PIL import Image, ImageTk


def show_image_in_popup():
    root = tk.Tk()
    root.withdraw()  # 隐藏主窗口

    popup = tk.Toplevel(root)
    popup.title("图片显示窗口")



    popup.mainloop()


show_image_in_popup()